﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClientWF
{
    public class Factory
    {
        public static IGame p = null;
        static Factory()
        {
            add(new TicTacToe(new LoginRoom(),""));           
        }
        static void add(IGame x)
        {
            x.next = p;
            p = x;
        }
        public static IGame gi(string name)
        {
            return p.IsReady(name);
        }     
    }
}
